package com.util

import com.tr.rts.cdf.CDFConsumer
import org.json4s.JsonAST

object ScalaUtil {

  def decodeL1(value: Array[Byte],changId: String ): String = {
    CDFConsumer.retrieveL1FromAvro(value, changId)
  }
  def decodeSnap(array: Array[Byte]): String = {
    val l2j: JsonAST.JValue = CDFConsumer.decodeSnapshot(array)

    val decodevalueStr: String = CDFConsumer.transform(l2j)
    decodevalueStr
  }


}
